<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        for (var i = 100; i <= 999; i++) {
            var a = i % 10
            var b = parseInt(i % 100 / 10)
            var c = parseInt(i / 100)
            if (a * a * a + b * b * b + c * c * c === i) {
                console.log(i + '是水仙花数')
            }
        }
    </script>
</body>

</html>